import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import { createPinia } from 'pinia'
const pinia = createPinia()
pinia.use(({ store }) => {
  store.name = 'zheng'
  store.$state.country = 'cn'
  setTimeout(() => {
    store.$state.country = 'en'
  }, 1000)
})
createApp(App).use(router).use(pinia).mount('#app')
